﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management.Automation;
using System.Net;
using System.Xml;
using System.IO;
using System.Web;
using GoGrid;

namespace Readify.Management.Automation.GoGrid
{
    [Cmdlet("Get", "GoGridImage")]
    public class GetGoGridImageCmdlet : GoGridCmdletBase
    {
        protected override void ProcessRecord()
        {
            Connection connection = this.GetConnection();

            List<Image> images = connection.ListImages();

            foreach (Image image in images)
            {
                this.WriteObject(image);
            }
        }
    }
}
